<template>
  <div class="home">
    <router-view v-slot="{ Component }">
      <component :is="Component" />
    </router-view>
  </div>
</template>

<script setup lang="ts">
import { onBeforeMount } from '@vue/runtime-core';
import { useMessage } from 'naive-ui';

onBeforeMount(() => {
  window.$message = useMessage();
});
</script>

<style scoped lang="scss"></style>
